<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required"  class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">视频:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-vedio" class="form-control" size="50" name="row[video]" type="text" value="{$row.video}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-vedio" class="btn btn-danger faupload" data-input-id="c-vedio" data-mimetype="mp4,avi,flv,wmv" data-multiple="false" data-maxsize="1024M" data-timeout="600000" data-preview-id="p-vedio" ><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-vedio" class="btn btn-primary fachoose" data-input-id="c-vedio" data-mimetype="mp4,avi,flv,wmv" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-vedio"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-vedio" data-template="customtpl"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script type="text/html" id="customtpl">
    <li class="col-xs-4">
        <a href="{$cdnurl}<%=url%>" data-url="<%=url%>" target="_blank" class="thumbnail">
            <video src="{$cdnurl}<%=url%>" style="max-height: 80px;margin:0 auto;height: 100%;" onerror="this.src=\'' +Fast.api.fixurl("ajax/icon")+ '?suffix=<%=suffix%>\'"></video>
        </a>
        <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
    </li>
</script>
